---
title: CloseVector
---

<Tip>
**Compatibility**

available on both browser and Node.js
</Tip>

[CloseVector](https://closevector.getmegaportal.com/) is a cross-platform vector database that can run in both the browser and Node.js. For example, you can create your index on Node.js and then load/query it on browser. For more information, please visit [CloseVector Docs](https://closevector-docs.getmegaportal.com/).

## Setup

### CloseVector Web

```bash npm
npm install -S closevector-web
```
### CloseVector Node

```bash npm
npm install -S closevector-node
```
import IntegrationInstallTooltip from '/snippets/javascript-integrations/integration-install-tooltip.mdx';

<IntegrationInstallTooltip/>

```bash npm
npm install @langchain/openai @langchain/community @langchain/core
```

## Usage

### Create a new index from texts

import Closevector from "/snippets/javascript-integrations/examples/indexes/vector_stores/closevector.mdx";

<Closevector />

### Create a new index from a loader

import ClosevectorFromdocs from "/snippets/javascript-integrations/examples/indexes/vector_stores/closevector_fromdocs.mdx";

<ClosevectorFromdocs />

### Save an index to CloseVector CDN and load it again

CloseVector supports saving/loading indexes to/from cloud. To use this feature, you need to create an account on [CloseVector](https://closevector.getmegaportal.com/). Please read [CloseVector Docs](https://closevector-docs.getmegaportal.com/) and generate your API key first by [loging in](https://closevector.getmegaportal.com/).

import ClosevectorSaveloadFromcloud from "/snippets/javascript-integrations/examples/indexes/vector_stores/closevector_saveload_fromcloud.mdx";

<ClosevectorSaveloadFromcloud />

### Save an index to file and load it again

import ClosevectorSaveload from "/snippets/javascript-integrations/examples/indexes/vector_stores/closevector_saveload.mdx";

<ClosevectorSaveload />

## Related

- Vector store [conceptual guide](/oss/concepts/#vectorstores)
- Vector store [how-to guides](/oss/how-to/#vectorstores)
